/* fonctions de dÃ©placement des popups */
   var savedTarget=null;
	var dragOK=false;
	var dragXoffset=0;
	var dragYoffset=0;

	function positionne(p_id, p_posX, p_pos_Y,p_index)
	{
		document.getElementById(p_id).style.left = p_posX;
		document.getElementById(p_id).style.top = p_pos_Y;
		//document.getElementById(p_id).style.zIndex = p_index;
	}

  function moveHandler(e)
	{
	     if (e == null) { e = window.event }
			 if (e.button<=1&&dragOK){
					   savedTarget.style.left=e.clientX-dragXoffset+'px';
						 savedTarget.style.top=e.clientY-dragYoffset+'px';
						 return false;
			 }
	}

	function cleanup(e)
	{
			document.onmousemove=null;
			document.onmouseup=null;
			document.onscroll=null;
			dragOK=false;

	}

	function dragHandler(e,obj)
	{
			var target = obj;


				savedTarget=target;
				dragOK=true;
				dragXoffset=e.clientX-parseInt(target.style.left);
				dragYoffset=e.clientY-parseInt(target.style.top);

				document.onmousemove=moveHandler;
				document.onmouseup=cleanup;

			return false;

	}
//onscroll=cleanup;